# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py3-pickleshare
pkgver=0.7.5
pkgrel=7
pkgdesc="File system based database that uses python pickles"
url="https://github.com/pickleshare/pickleshare"
arch="noarch"
license="MIT"
options="!check" # No test suite
depends="python3"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/pickleshare/pickleshare/archive/$pkgver.tar.gz"
builddir="$srcdir/${pkgname#py3-}-$pkgver/"

replaces="py-pickleshare" # Backwards compatibility
provides="py-pickleshare=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="eb5b1a12d9a78032601fe0a4aa036a0a2d2e007a79ec1d39aa7e28d33465b6e7346f3edf5a4de33030b41f3acfd2cca6cc7ab508d33fc79bd0f11178729905e8  py3-pickleshare-0.7.5.tar.gz"
